package com.tsn.service.impl;

import com.tsn.dao.HelloDao;
import com.tsn.dao.impl.HelloDaoImpl;
import com.tsn.factory.BeanFactory;
import com.tsn.service.HelloService;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author tsn
 * @since 2021/10/26
 */
public class HelloServiceImpl implements HelloService {
//    private HelloDao helloDao=new HelloDaoImpl();
    private HelloDao helloDao = BeanFactory.getDao();
    @Override
    public List<String> findAll() {
        return this.helloDao.findAll();
    }
}
